'''
元组：定义(元素1，元素2...)
不可变
查询
下标  长度  切片  循环
'''

student = ("小张","小明","小孙","小宣")
print(student[1])
print(len(student))
print(student[1:3])
print(student[:3])
print(student[0:])
print(student[::2])
for s in student:
    print(s)

for i in range(0,len(student)):
    print(student[i])

print(student.count("小明"))
print(student.index("小宣"))